
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package be.ac.ua.pats.thesisrobotica.robot.main;

//~--- non-JDK imports --------------------------------------------------------

import lejos.nxt.Button;
import lejos.nxt.ColorLightSensor;
import lejos.nxt.SensorPort;
import lejos.nxt.comm.RConsole;

/**
 *
 * @author Admin
 */
public class ColorTest {
    public static void main(String[] args) {

        RConsole.openUSB(20000);
        ColorLightSensor cs = new ColorLightSensor(SensorPort.S1, ColorLightSensor.TYPE_LIGHT_ACTIVE);

        while (!Button.ESCAPE.isPressed()) {
            RConsole.println(String.valueOf(cs.getLightValue()));
        }
        RConsole.close();
    }
}
